﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ERF;
using Microsoft.Xna.Framework;
using FirstPerson.Objects.Pickups;

namespace FirstPerson.Objects.Pickups
{
    class Weapon : Pickable
    {
        public Weapon(ERFGame game) : base(game, @"Models\Weapons\AK47\AK47") {
            this.spawnTime = 5f;
            base.Scale = Vector3.One * 0.2f;
            this.Picked += new EventHandler<PickedEventArgs>(Weapon_Picked);
        }

        void Weapon_Picked(object sender, PickedEventArgs e) {

            e.Player.CurrentWeapon.Ammunition += 10;
        }
    }
}
